Table Cells Difference Display

I can display differences of Object Heading and Object Text since baseline using layout DXL. I would like to extend this display to include differences of Table cells. Can I do this using layout DXL or should I use another mechanism.

Thanks,

Richard Isicoff
RichardIsicoff - Wed May 11 15:04:43 EDT 2011

Re: Table Cells Difference Display
llandale - Wed May 11 15:29:56 EDT 2011

Understand that the Layout for an object is calculated every time that object is re-displayed on your screen. If you see 10 objects and scroll down one, the layout for the 1st 9 is recalculated. If you drag another window over your module window or move your module window around on your screen, then the layout for all 10 objects is recalculated perhaps 10 times per second.

Attr-DXL is calculated with the obj-attr value is 1st read after the module is opened. It is re-calculated whenever the value is set to null ..err.. I mean whenever the value is null and the value is read. Thus, Attr-DXL should not set results to null but should set it to a single space instead, to prevent re-calculation thrashing. The main disadvantage of Attr-DXL is when the underlieing data changes, the attr-dxl displays the old value; but then you can "refresh" to get the new update.

Layouts are for very simple chores ONLY, like displaying "Confirmed" if the test results are "Adequate" or better. Everything else, including "diff" compares should be done with Attr-DXL. Convert your existing diff to Attr-DXL and display that, you will notice a rather drastic improvment in response time.

Now for your post. Layout columns do not display for table cells. You must therefore do that work in an Attr-DXL, get a special view for this information, and instruct DOORS to display that attr-DXL in that table in this view. I don't recall the mechanics but see "Table Attributes" in the "Using DOORS" manual. If you need to see the actual cell contents ..err.. cell Object Text, then your Attr-DXL can display the text, and EOL, then whatever results you want.

  • Louie

Re: Table Cells Difference Display
RichardIsicoff - Wed May 11 17:17:26 EDT 2011

Wow Louie,

Thanks for the volume and speed of your response. I noticed an example in DOORS for converting tables to hiearchy of objects. I think this will work, but for a sticky point. The conversion does not keep history records around. I will need the records for the diff funtion.

Thanks for pointing me in the right direction.

Richard Isicoff

Re: Table Cells Difference Display
Mathias Mamsch - Wed May 11 17:21:49 EDT 2011

I implemented a diff using a layout DXL which also works on table cells. I ended up on collecting the results for the whole table and displaying it on the previous object. This has a couple of drawbacks:
  • the diff information can be really large for many changes in big tables, so it might not fit on the page and be hard to read
  • the diff information will be shown on an object, which might or might not have changed. So filtering the changes object becomes harder
  • the performance will get a big drop, since for the layout DXL you would need to diff the complete table, for the object before the table, to accumulate the results.

Therefore Louies suggestion is probably the way to go. Use an attribute DXL for the diff and then display the diff in the table cells changing the default table attribute. You can also create a second DXL attribute, which will generate a red color enumeration value, on a change and a black one if no change occured. Then you can color the main column using this attribute. It will nicely set the changes in focus.

Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Table Cells Difference Display
RichardIsicoff - Thu May 12 14:34:02 EDT 2011

Mathias,

Thanks for your response and providing a constrasting point of view to my questions.

Richard Isicoff